home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 5219 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  878 b 

  1. Path: newsfeed.pitt.edu!news
  2. From: kbatch <kbatch@rcn.wpic.pitt.edu>
  3. Newsgroups: comp.lang.c
  4. Subject: Using C for real time data collection
  5. Date: 8 Feb 1996 21:11:35 GMT
  6. Organization: WPIC Research Computing Network
  7. Message-ID: <4fdou7$67e@usenet.srv.cis.pitt.edu>
  8. NNTP-Posting-Host: res163.wpic.pitt.edu
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 1.22 (Windows; I; 16bit)
  13.  
  14. I have a data collection program written mostly in C that uses stream
  15. functions. Problem: someone inadvertantly shut off the computer during
  16. data collection - all data was lost. The files are left open purposely
  17. for data review and efficiency. I want to link with commode.obj. Will 
  18. the operating system (DOS) automatically commit the data to disk when
  19. the stream buffer becomes full? Or, do I have to use a fflush after each 
  20. fwrite?
  21.  
  22.